$(function () {
    var shopId=getQueryString('shopId');
    var shopInfoUrl='/shopadmin/getshopmanagementinfo?shopId='+shopId;
    $.getJSON(shopInfoUrl,function(result){
        if(result.data.redirect){
            window.location.href=result.data.url;
        }else{
            if(result.data.shopId!=undefined&&result.data.shopId!=null){
                shopId=data.shopId;
            }
            $('#shopInfo').attr('href','/shopadmin/shopoperation?shopId='+shopId);
        }
    });
});